﻿<phone:PhoneApplicationPage 
    x:Class="CCWP7.CaliburnMicro.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:behaviors="clr-namespace:CCWP7.CaliburnMicro.Behaviors"
    xmlns:framework="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
    behaviors:TiltEffect.IsTiltEnabled="True"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="#FF79BD9A">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="{StaticResource AppTitle}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="about" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ScrollViewer>
                <StackPanel CacheMode="BitmapCache">
                    <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                        <TextBlock Text="Version: " Style="{StaticResource PhoneTextNormalStyle}" FontWeight="Bold" />
                        <TextBlock x:Name="Version" Style="{StaticResource PhoneTextAccentStyle}"/>
                    </StackPanel>

                    <TextBlock
                        TextWrapping="Wrap" 
                        Style="{StaticResource PhoneTextNormalStyle}"
                        Text="This is open-source project that can be used to monitor and in future releases, control Cruise Control.Net servers and projects with notification service and live tile."/>
                    <HyperlinkButton x:Name="CCNet"
                        Content="Cruise Control.Net web site"
                        HorizontalContentAlignment="Left">
                        <interactivity:Interaction.Triggers>
                            <interactivity:EventTrigger EventName="Click">
                                <behaviors:VibrateBehavior/>
                                <framework:ActionMessage MethodName="CCNet"/>
                            </interactivity:EventTrigger>
                        </interactivity:Interaction.Triggers>
                    </HyperlinkButton>
                    <HyperlinkButton x:Name="ProjectPage"
                    	Content="This project's page"
                    	HorizontalContentAlignment="Left" Margin="0,20,0,0">
                        <interactivity:Interaction.Triggers>
                            <interactivity:EventTrigger EventName="Click">
                                <behaviors:VibrateBehavior/>
                                <framework:ActionMessage MethodName="ProjectPage"/>
                            </interactivity:EventTrigger>
                        </interactivity:Interaction.Triggers>
                    </HyperlinkButton>

                    <TextBlock 
                        TextWrapping="Wrap" 
                        Style="{StaticResource PhoneTextNormalStyle}"
                        Text="This project has been developed as sample for Code Project article:"/>
                    <HyperlinkButton x:Name="CodeProjectArticle"
                        Content="Caliburn Micro for Windows Phone 7"
                        HorizontalContentAlignment="Left">
                        <interactivity:Interaction.Triggers>
                            <interactivity:EventTrigger EventName="Click">
                                <behaviors:VibrateBehavior/>
                                <framework:ActionMessage MethodName="CodeProjectArticle"/>
                            </interactivity:EventTrigger>
                        </interactivity:Interaction.Triggers>
                    </HyperlinkButton>

                    <HyperlinkButton x:Name="EMailSupport"
                        Margin="0,40,0,0"
                        Content="E-Mail for Suggestions or Support"
                        HorizontalContentAlignment="Left">
                        <interactivity:Interaction.Triggers>
                            <interactivity:EventTrigger EventName="Click">
                                <behaviors:VibrateBehavior/>
                                <framework:ActionMessage MethodName="EMailSupport"/>
                            </interactivity:EventTrigger>
                        </interactivity:Interaction.Triggers>
                    </HyperlinkButton>

                    <HyperlinkButton x:Name="OtherApps"
                                     Margin="0,20,0,0" 
                                     HorizontalContentAlignment="Left"
                                     Content="Other Apps by nz bee">
                        <interactivity:Interaction.Triggers>
                            <interactivity:EventTrigger EventName="Click">
                                <behaviors:VibrateBehavior/>
                                <framework:ActionMessage MethodName="OtherApps"/>
                            </interactivity:EventTrigger>
                        </interactivity:Interaction.Triggers>
                    </HyperlinkButton>
                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
